export default {
  namespaced: true,
  state: {
    username: '',
    email: '',
    appkey: '',
    role: '',
  },
  mutations: {
    setUserInfo(state, userInfo) {
      Object.keys(userInfo).forEach((key) => {
        state[key] = userInfo[key];
      });
    },
  },
};
